﻿using WPay.Application.Base;
using WPay.Domain.Model.DTOs;
using System;
using System.Collections.Generic;
using System.Text;

namespace WPay.Application.Interface.OAuth
{
    /// <summary>
    /// Token应用服务接口
    /// </summary>
    public interface IToken_ApplicationService : IApplication_IocServices
    {
        /// <summary>
        /// 获取token
        /// </summary>
        /// <param name="_appId">应用ID</param>
        /// <param name="_appSecret">应用开发密钥</param>
        /// <returns></returns>
        RespDto GetToken(string _appId,string _appSecret);
        /// <summary>
        /// 校验token
        /// </summary>
        /// <param name="_token">Token字符串</param>
        /// <param name="_appID">输出当前token中的AppID及Sub</param>
        /// <returns>是否通过【true:通过；false:未通过】</returns>
        bool CheckToken(string _token, out string _appID);

    }
}
